package com.innerchic.weqiuqiu.bean;

import android.app.PendingIntent;
import android.graphics.Bitmap;
import android.graphics.drawable.Icon;
import android.os.Parcelable;

/**
 * ================================================
 * 作    者：贾恒飞 >>> 17515250730@163.com
 * 项    目：wedudu
 * 日    期：2022/1/14 15:52
 * 包    名：com.innerchic.weqiuqiu.bean
 * 描    述：顶层消息对象
 * Create by zFox from AndroidStudio4.2
 * ================================================
 */
public class MessageBean {

    /**
     * 发送者
     */
    private String name;

    /**
     * 除去条数的完整消息
     */
    private String content;

    /**
     * 精简消息
     */
    private String message;

    /**
     * 消息来源
     * 消息来源的包名
     */
    private String messageSource;

    /**
     * 类型,1群聊,2单聊
     * 不精准,不做判断依据,只有存在@时可以分辨
     */
    private int type;

    /**
     * 开启对应页面的Intent对象
     */
    private PendingIntent openPendingIntent;

    /**
     * 当前对象消息条数
     * 排列数
     */
    private int count;

    /**
     * 是否 提到了你
     */
    private boolean atYou = false;

    /**
     * 消息类型,具体类型
     * 默认文本0
     */
    private int messageType = 0;

    /**
     * 头像,可能是Bitmap或者Icon
     */
    private Parcelable parcelable;

    /**
     * 小图标id,默认0
     */
    private int smallIconId;

    /**
     * 创建时间
     */
    private long createTime = System.currentTimeMillis();

    /**
     * 返回消息体
     */
    private MessageReply messageReply;

    /**
     * 关闭时间
     * 默认0不自动关闭
     */
    private long closeTime;

    /**
     * 包名,标题,内容 加载的md5加密串,用于辨识信息移除等操作
     */
    private String md5Key;

    public String getMd5Key() {
        return md5Key;
    }

    public void setMd5Key(String md5Key) {
        this.md5Key = md5Key;
    }

    public long getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(long closeTime) {
        this.closeTime = closeTime;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getMessage() {
        return message;
    }

    public String getMessageSource() {
        return messageSource;
    }

    public void setMessageSource(String messageSource) {
        this.messageSource = messageSource;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public PendingIntent getOpenPendingIntent() {
        return openPendingIntent;
    }

    public void setOpenPendingIntent(PendingIntent openPendingIntent) {
        this.openPendingIntent = openPendingIntent;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public boolean isAtYou() {
        return atYou;
    }

    public void setAtYou(boolean atYou) {
        this.atYou = atYou;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public Parcelable getParcelable() {
        return parcelable;
    }

    public void setParcelable(Parcelable parcelable) {
        this.parcelable = parcelable;
    }

    public int getSmallIconId() {
        return smallIconId;
    }

    public void setSmallIconId(int smallIconId) {
        this.smallIconId = smallIconId;
    }

    public MessageReply getMessageReply() {
        return messageReply;
    }

    public void setMessageReply(MessageReply messageReply) {
        this.messageReply = messageReply;
    }
}
